﻿@model dynamic

@using Contrib.BSCarouselSlide.Models;
@using Orchard.ContentManagement;

@{
    //var contentItem = (ContentItem)Model.ContentItem;
    var theModel = @Model.ContentItem.BSCarouselSlidePart;
    string slidename=string.Format("slide{0}",theModel.Priority);
    string isActive = (theModel.Priority == 1 ) ? "active":"";
    }
<div class="@slidename  @isActive item @theModel.CarouselKey">
    <div class="row">
        @Display(Model.Content)
     </div>
</div>
